const assert = require('assert')
const app = require('../../index')
const superagent = require('supertest')

function request() {
    return superagent(app.listen())
}
describe('login',()=>{
    describe('captcha', () => {
        it('should return code 1',(done) => {
            request().post('/user/login')
                .send({username:'janwool',password:'a65182533'})
                .expect(200)
                .end((err,res) => {
                    if(err) return done(err)
                    console.log(res)
                    done()
                })
        })
    })
})